Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor]: Remove isSSOEnabled logic throughout the codebase #9462

Merged
merged 8 commits into from
Jan 10, 2025

Conversation

AMoreaux
Copy link
Contributor

@AMoreaux AMoreaux commented Jan 8, 2025

Eliminated all references to isSSOEnabled across the frontend, backend, and configuration files. This change simplifies the codebase by removing unnecessary feature flag checks, associated logic, and environment variables. The SSO feature remains available without reliance on this flag.

Eliminated all references to `isSSOEnabled` across the frontend, backend, and configuration files. This change simplifies the codebase by removing unnecessary feature flag checks, associated logic, and environment variables. The SSO feature remains available without reliance on this flag.
@AMoreaux AMoreaux requested a review from FelixMalfait January 8, 2025 17:01
@AMoreaux AMoreaux self-assigned this Jan 8, 2025
Copy link

github-actions bot commented Jan 8, 2025

Fails
🚫

node failed.

Log

�[31mError: �[39m SyntaxError: Unexpected token C in JSON at position 0
    at JSON.parse (<anonymous>)
�[90m    at parseJSONFromBytes (node:internal/deps/undici/undici:5584:19)�[39m
�[90m    at successSteps (node:internal/deps/undici/undici:5555:27)�[39m
�[90m    at fullyReadBody (node:internal/deps/undici/undici:1665:9)�[39m
�[90m    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)�[39m
�[90m    at async specConsumeBody (node:internal/deps/undici/undici:5564:7)�[39m
danger-results://tmp/danger-results-a0f4789e.json

Generated by 🚫 dangerJS against 81d5b37

packages/twenty-server/src/main.ts Dismissed Show resolved Hide resolved
@AMoreaux
Copy link
Contributor Author

AMoreaux commented Jan 8, 2025

@FelixMalfait Do you want a command for the next migration to clean the flag in the database?

@charlesBochet
Copy link
Member

Let's wait for the deploy before merging this PR :)

export * from './animated-expandable-container/types/AnimationSize';
export * from './animated-expandable-container/utils/getCommonStyles';
export * from './animated-expandable-container/utils/getExpandableAnimationConfig';
export * from './animated-expandable-container/utils/getTransitionValues';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this is / why this is part of this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. Weird. I remove that

Copy link
Member

@FelixMalfait FelixMalfait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Remove redundant exports related to animated expandable container types and utils. This streamlines the index file by exposing only necessary components for cleaner and more maintainable imports.
…and-env

# Conflicts:
#	packages/twenty-front/src/generated/graphql.tsx
Removed the `isSSOEnabled` field from the GraphQL schema and related query types. This cleanup eliminates redundant data and simplifies the client config structure.
@charlesBochet charlesBochet merged commit 5648c3b into main Jan 10, 2025
17 of 18 checks passed
@charlesBochet charlesBochet deleted the feat/remove-sso-flag-and-env branch January 10, 2025 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants